package com.guigu.qingcheng.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(name="web-portal")
@Component
public interface WebPortalClient {

    @PostMapping("/portal/findNewOrderItemList2")
    public List<Map<String,Object>> findNewOrderItemList2(@RequestBody String username);

    @PostMapping("/portal/preferential2")
    public int preferential2(@RequestBody String username);


    @PostMapping("/portal/deleteCheckedCart2")
    public void deleteCheckedCart2(@RequestBody String username);
}
